<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>部门员工管理</title>
<jsp:include page="/WEB-INF/views/common/link.jsp" />

</head>
<body class="hold-transition skin-blue sidebar-mini">

	<div class="wrapper">
		<%@include file="/WEB-INF/views/common/navbar.jsp"%>
		<!--菜单回显-->
		<c:set var="currentMenu" value="employee" />
		<%@include file="/WEB-INF/views/common/menu.jsp"%>
		<div class="content-wrapper">
			<section class="content-header">
				<h1>${dept.name} 员工绑定</h1>
			</section>
			<section class="content">
				<div class="box container">
					<div class="col-sm-6" style="margin-top: 10px;">
						<div class="col-sm-12">员工列表</div>
						<div class="form-group col-sm-12">
							<select class="form-control" multiple id="newOptionSelect" size="10">
								<c:forEach var="emp" items="${notExistEmpList}">
									<option value="${emp.id}">${emp.name}</option>
								</c:forEach>
							</select>
						</div>
						<div class="form-group">
							<div class="col-sm-offset-10 col-sm-6">
								<input type="reset" class="btn btn-danger" id="addSelectBtn" value="添加 =>"/>
							</div>
						</div>
					</div>
					<form class="form-horizontal col-sm-6" action="/department/bindEmployee" method="post" id="editForm">
						<input type="hidden" name="id" value="${dept.id}">
						<div class="form-group" style="margin-top: 10px;">
							<div class="col-sm-12">现有员工</div>
							<div class="col-sm-12">
								<select name="empId" class="form-control" multiple id="existOptionSelect" size="10">
									<c:forEach var="emp" items="${existEmpList}">
										<option value="${emp.id}">${emp.name}</option>
									</c:forEach>
								</select>
							</div>
						</div>
						<div class="form-group">
							<div class="col-sm-offset-0 col-sm-6">
								<input type="reset" class="btn btn-danger" id="delSelectBtn" value="<= 移除"/>
								<input type="button" class="btn btn-primary" id="bindRole_btn" value="提交">
							</div>
						</div>
					</form>
					<br />
				</div>
			</section>
		</div>
		</div>
		<%@include file="/WEB-INF/views/common/footer.jsp"%>
	</div>
</body>
</html>
